type role = 'user' | 'assistant'
export interface chatMeeages {
    id: number;
    updateTime: number;
    createTime: string;
    isDel: number;
    deleTime: string;
    userID: number;
    conversationID: number;
    conversationContent: string;
    reasoningContent: string;
    filesURL: string;
    role: role;
    parentId: number;
    tokens: number;
    thinkingTime: number;
    uuid?:string
}
export interface chatMeeagesList {
    list: Array<chatMeeages>,
    total: number;
}

export interface ParseContentFace {
    type: MeeageType;
    content: string;
    lang?: string,
    displayMode?: boolean,
    isBlock?: boolean
}
export interface renderHtml {
    html: string
    lang?: string,

}
export enum MeeageType {
    code = "code", //代码
    text = "text", //文字
    math = "math", //数学公式
    mermaid = "mermaid", // 流程图
    html = "html"
}

export interface ConversationGroupListFace {
    id: number
    userId: number,
    title: string
    updateTime: number
}
export enum chatMitt {
    changeConversationGroupId = "changeConversationGroupId"
}



export interface ModelTypeCace {
    id: number
    userId: number
    name: string
    apiUrl: string
    apiPath: string
    apiKey: string
    models: string
    maxToken: number
}
export interface chatStoreFace {
    currentConversationGroupId: number
    currentModelId: number;
    currentModel: string;
    models:Array<string>
    list:Array<ModelTypeCace>
    ConversationGroupList:Array<ConversationGroupListFace>
}